package com.cloudptt.wp.ui.address.map.data;

import com.mcptt.db.model.UserInfo;

public class TagInfo {

	private UserInfo userInfo;
	private long time;
	private PointInfo pointInfo;
	private int type;
	private String describeInfo;
	
	public UserInfo getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public PointInfo getPointInfo() {
		return pointInfo;
	}
	public void setPointInfo(PointInfo pointInfo) {
		this.pointInfo = pointInfo;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getDescribeInfo() {
		return describeInfo;
	}
	public void setDescribeInfo(String describeInfo) {
		this.describeInfo = describeInfo;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof TagInfo) {
			TagInfo tag = (TagInfo)o;
			return (tag.getUserInfo().equals(this.getUserInfo()) && tag.getTime() == this.getTime() && tag.getPointInfo().equals(this.getPointInfo())
					&& tag.getType() == this.getType() && tag.getDescribeInfo().equals(this.getDescribeInfo()));
		} else {
			return false;
		}
	};
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "TagInfo [ userInfo: " + getUserInfo().toString() + ", time: " + getTime() + ", point: " + getPointInfo().toString()
				+ ", type: " + getType() + ", description: " + getDescribeInfo() + " ]";
	}
	
}
